<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/30 0030
 * Time: 17:13
 */
namespace plugins\qbt_wx_os\validate;
use think\Validate;

class WxOsConfigValidate extends Validate{

    protected $rule = [
        'wx_name' => ['require'],
        'appid' => ['length'=>18],
        'appsecret' => ['length'=>32]
    ];

    protected $message = [
        'wx_name.require'  => '请输入微信公众号名称',
        'appid.length'     => '请输入18位微信公众号的appid',
        'appsecret.length' => '请输入32位微信公众号的appsecret'
    ];
}
